CFLAGS 		:= -Wall -O2 -fno-builtin -ffreestanding -nostdlib
led_wtd.bin: init.o main.o
	arm-linux-ld -Ttext 0x0 -o uart.elf $^
	arm-linux-objcopy -O binary uart.elf uart.bin
	arm-linux-objdump -D uart.elf > uart_elf.dis


%.o : %.S
	arm-linux-gcc $(CFLAGS) -o $@ $< -c

%.o : %.c
	arm-linux-gcc $(CFLAGS) -o $@ $< -c 


clean:
	rm *.o *.elf *.bin *.dis forlinx -f
